package com.atguigu.constan

/**
 * description ：项目常量
 * author      ：剧情再美终是戏 
 * mail        : 13286520398@163.com
 * date        ：Created in 2020/2/10 19:42
 * modified By ：
 * version:    : 1.0
 */
object ConstanVal {

  // 日志服务器地址
  val LOG_UPLOADER_ADRESS: String = "http://hadoop101/log"


  /*
   kafka 相关
 */
  val KAFKA_CLIENT_ADRESS = "hadoop101:9092,hadoop102:9092,hadoop103:9092"
  val KAFKA_TOPIC_START: String = "gmall_2020212_start"
  val KAFKA_TOPIC_EVENT: String = "gmall_2020212_event"
  val KAFKA_TOPIC_ORDER: String = "gmall_2020212_order"
  val KAFKA_TOPIC_ORDER_DETAIL: String = "gmall_2020212_order_detail"


  /*
    redis 相关
   */
  // 连接主机
  val REDIS_HOST = "hadoop101"

  // 连接端口
  val REDIS_PORT = 6379

  // 连接密码
  val REDIS_PASSWORD = "root"

  // 连接超时时间
  val REDIS_TIMEOUT = 2000

  /*
 hbase 相关
*/
  val GMALL_HBASE_TABLE_NAME = "GMALL_DAU"
  val GMALL_HBASE_TABLE_NAME_ORDER = "GMALL_ORDER_INFO"
  val PHOENIX_ZK_ADRESS = "hadoop101,hadoop102,hadoop103:2181"

  /*
   canal 相关
   */
  val CANAL_CLIENT_PORT = 11111
  val CANAL_CLIENT_HOSTNAME = "hadoop101"
  val CANAL_DISTINNATION_EXAMPLE = "example"

  /*
  es 相关
   */
  val ES_CLIENT_ADRESS = "http://hadoop101:9200"
  val ES_INDEX_GMALL0830_COUPON_ALERT = "gmall0830_coupon_alert"
  val ES_INDEX_GMALL0830_SALE_DETAIL = "gmall0830_sale_detail"
  val ES_DEFAULT_DOC = "_doc"

  /*
  mysql 相关
   */
  val MYSQL_CLIENT_URL = "jdbc:mysql://hadoop101:3306/gmall0830"
  val MYSQL_CLIENT_USER = "root"
  val MYSQL_CLIENT_PASSWORD = "root"

  val MYSQL_TABLE_ORDER_INFO = "order_info"
  val MYSQL_TABLE_ORDER_DETAIL = "order_detail"
  val MYSQL_TABLE_USER_INFO = "user_info"


}
